﻿using UnityEngine;
using System.Collections;

public class levelStatusCommand : ICommand {

	private bool needResponse;
	
	public levelStatusCommand() {
		needResponse = false;
	}
	
	public string getCommand() {
		needResponse = false;
		int status = GameManager.getInstance ().GetCurrentStatus ();
		return "levelstatus:" + status;
	}
	
	public void respond(string command, string content) {
		if (command.Equals ("levelstatus"))
			needResponse = true;
	}
	
	public bool needsToRespond() {
		return needResponse;
	}
}
